package app.caretrack.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

@Entity
@Table(name = "ServicePackage_Options")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class ServicePackageOption extends NamedBaseModel {

    private List<ServicePackage> servicePackageList;

    @ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH, mappedBy = "servicePackageOptionList")
    public List<ServicePackage> getServicePackageList() {
        return this.servicePackageList;
    }

    public void setServicePackageList(List<ServicePackage> servicePackageList) {
        this.servicePackageList = servicePackageList;
    }

}
